home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / contrib / campbell / gtplot.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-27  |  1.8 KB  |  59 lines

  1. #ifndef INCgtplot
  2. #define INCgtplot
  3.  
  4. /*-
  5.    gnuplot Graphics Terminal header file.  This file is required by
  6.    all users of the gnuplot Graphics Terminal library: gterm.c
  7. -*/
  8. #include "plot.h"
  9.  
  10. /* Some key global variables */
  11. #ifdef GT_OWNER
  12. /* GTterm_tbl[] is "extern" only in the sense that it is defined later... */
  13. extern struct termentry GTterm_tbl[];
  14. FILE *GToutfile=NULL;
  15. BOOLEAN GTterm_init=0;
  16. BOOLEAN GTinteractive=0;  /* Not used correctly yet--who can set it? */
  17. BOOLEAN GTcolor=0;  /* Not used yet */
  18. int GTterm=0;
  19. float GTxsize = 1.0, GTysize = 1.0, GTzsize = 1.0;  /* z's not used yet */
  20. #else
  21.  
  22. /*- 
  23.    Globals available when using gterm.c:
  24.  
  25.    GTterm_tbl[]    -  table containing function pointers, etc. for all
  26.                       terminal drivers in the gnuplot package.
  27.  
  28.    GToutfile       -  Output file pointer where all plotting activity is
  29.                       written out.
  30.  
  31.    GTterm_init     -  Indicates if the terminal has been initialized yet.
  32.  
  33.    GTinteractive   -  Indicates if we are an interactive terminal or not.
  34.  
  35.    GTcolor         -  Not used yet, someday it would be nice to know if we
  36.                       are working on a color terminal or not.
  37.  
  38.    GTterm          -  Index into GTterm_tbl describing the current terminal.
  39.                       Generally gt_init_teminal() will set this to match the
  40.                       GNUTERM environment variable.  The terminal can be
  41.                       changed, however, with gt_change_term().
  42.    
  43.    GTxsize,        -  scaling factors currently only the LaTeX driver can
  44.    GTysize            and the postscript driver make use of these.
  45. -*/
  46.  
  47. extern struct termentry GTterm_tbl[];
  48. extern FILE *GToutfile;
  49. extern BOOLEAN GTterm_init;
  50. extern BOOLEAN GTinteractive;
  51. extern BOOLEAN GTcolor;  /* Not used yet */
  52. extern int GTterm;
  53. extern float GTxsize, GTysize;
  54. /*--*/
  55.  
  56. /*--*/
  57. #endif
  58. #endif
  59.